Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.ajax = function(t) {
    var o = t.url, n = t.data, a = t.method, c = void 0 === a ? "POST" : a;
    return new Promise(function(t, a) {
        var r = e.BASE_URL;
        wx.request({
            url: "".concat(r).concat(o),
            header: {
                "content-type": "application/json"
            },
            method: c,
            dataType: "json",
            responseType: "text",
            data: n,
            success: function(e) {
                t(e.data);
            },
            fail: function(e) {
                a(e);
            }
        });
    }).catch(function(e) {
        console.log(e);
    });
};

var e = require("A1901C218A52ABCFC7F674269787FE64.js");